package simulator.labyrinth;

import simulator.position.Point;

public class Wall extends Obstacle {
	
	public Wall(Point start, Point end) {
		super(start, end);
	}
	
	public String toString() {
		return "Wall on: " + getStartPosition() + " - " + getEndPosition();
	}
	
	public int hashCode() {
		return toString().hashCode();
	}
	
	public boolean equals(Object o) {
		if (!(o instanceof Wall))
			return false;
		Wall w = (Wall) o;
		return getStartPosition().equals(w.getStartPosition()) && getEndPosition().equals(w.getEndPosition());
	}
	
}
